<?php
namespace Admin\Controller;
class CommonController extends EmptyController {
	
 /*
	*
	*构造函数自动执行
	* Author <381943134@qq.com> 2016/12/21  
	*/
      public function __construct(){
          
          parent::__construct();  //这句必须有
		//  dump($_SESSION['admin_info']);die;
         
          if(!isset($_SESSION['admin_info']['aid'])||empty($_SESSION['admin_info'])){
			  

		    $this->error(L('_NO_LOGIN_'), U('Log/index'));
			 
			  exit;

		  }
		 
	  }
   
   
}

 